package com.lening.community.controller;

import com.lening.common.base.BaseController;
import com.lening.community.dto.Record1DTO;
import com.lening.community.pojo.Record1;
import com.lening.community.service.Record1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ToDo:
 * @Author：潘万法
 * @date: 2024/6/22 15:38
 */
@RestController
@RequestMapping("record")
public class RecordController extends BaseController<Record1, Record1DTO, Record1Service> {
   @Autowired(required = false)
   private Record1Service record1Service;

   @PostMapping("get")
   public int get(Long total, Long success, Long failing) {
      return  record1Service.adda(total, success, failing);
   }
}
